#include "Helice.h"


Helice::Helice()
{
	speedTurn=0.0;
}

Helice::~Helice(void)
{
}


void Helice::render()
{
	glPushMatrix();
	model.set();
	glColor4f( 1.0f, 1.0f, 1.0f, 1.0f );  
	texture->bind();
	mesh->render();
	glEnable(GL_BLEND);
	glDisable(GL_DEPTH_TEST);
	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
	glDepthMask(GL_FALSE);
	texture->unbind();
	glDisable(GL_BLEND);
	glEnable(GL_DEPTH_TEST);
	glDepthMask(GL_TRUE);
	glPopMatrix();
}

void Helice::update(float seconds_elapsed)
{
	this->model.rotate(speedTurn,Vector3(0,1,0));
}

